package com.liy.redisson.controller;


import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * 日志测试
 */
@RestController
public class slf4jController {

    private  final Logger logger = LoggerFactory.getLogger(this.getClass());

    @GetMapping("/logback/{username}/{password}")
    public String logback(@PathVariable String username,@PathVariable String password){

        logger.info("--------正在请求logback接口-------");

        return  username + password;
    }

}
